package system

import (
	"github.com/gin-gonic/gin"
	api "ruoyi_gin/app/admin/api/system"
)

func InitDept(e *gin.Engine) {

	v := e.Group("system/dept")
	{
		auth := v.Group("")
		auth.Use()
		{
			auth.GET("/list", api.ListDeptApi)
			auth.GET("/list/exclude/:deptId", api.ExcludeDept)
			auth.GET("/:deptId", api.GetDeptApi1)
			auth.POST("", api.SaveDept)
			auth.PUT("", api.UpdateDept)
			auth.DELETE("/:deptId", api.DeleteDept)
		}

	}
}
